<template>
	<view>
		<!-- top start -->
		<view class="top">
			<text class="text-1"><strong>泊程天舟主题咖</strong></text>
			<text class="TM"><strong>TM</strong></text>
			<view class=top-box>
				<view class="top-box-view1"></view>
				<view class="top-box-view2"></view>
				<text class="text-2" @click="tojcfs">精彩放送</text>
			</view>
		</view>
		<!-- top end -->
		<!-- 轮播start -->
		<view class="lunBoBigBox">
			<view class="lunBo">
				<swiper class="swiper" autoplay interval="2000" circular>
					<!-- 一个swiper-item 就表示滑动的一屏 -->
					<swiper-item>
						<image class="lBimg" src="../../static/lunBo.png" mode=""></image>
					</swiper-item>
					<swiper-item>
						<image class="lBimg" src="../../static/lunBo.png" mode=""></image>
					</swiper-item>
					<swiper-item>
						<image class="lBimg" src="../../static/lunBo.png" mode=""></image>
					</swiper-item>
				</swiper>
			</view>
		</view>
		<!-- 轮播end -->
		<!-- 功能start -->
		<view class="gongNeng">
			<view class="gN-view">
				<i class="iconfont icon-meishi"></i>
				<text>美食</text>
			</view>
			<view class="gN-view">
				<i class="iconfont icon-youxiji"></i>
				<text>娱乐</text>
			</view>
			<view class="gN-view">
				<i class="iconfont icon-yundong"></i>
				<text>运动</text>
			</view>
			<view class="gN-view">
				<i class="iconfont icon-xiuxian"></i>
				<text>休闲</text>
			</view>
			<view @click="myCode" class="gN-view">
				<i class="iconfont icon-erweima"></i>
				<text>会员码</text>
			</view>
		</view>
		<!-- 功能end -->
		<!-- 咖啡推荐start -->
		<view class="lunBoBigBox">
			<view class="kaFeiTuiJian">
				<view class="kF-view">
					<text class="kF-text1">咖啡推荐</text>
					<view class="gengDuo">
						<text class="kF-text2">咖啡助手</text>
						<image src="/static/jiantou.png"></image>
					</view>
				</view>
				<scroll-view class="scroll-view_H" scroll-x="true" @scroll="scroll" scroll-left="0">
					<view class="scr-view1">
						<image class="kFimg" src="/static/kFimg1.png"></image>
						<view><text class="kFimg-text-1">主题专网</text></view>
						<view><text class="kFimg-text-2">网络畅游，不用担心消息延迟啦！</text></view>
					</view>
					<view class="scr-view1">
						<image class="kFimg" src="/static/kFimg2.png"></image>
						<view><text class="kFimg-text-1">咖影院</text></view>
						<view><text class="kFimg-text-2">超清主题电影，只愿与你一同分享！</text></view>
					</view>
					<view class="scr-view1">
						<image class="kFimg" src="/static/kFimg3.png"></image>
						<view><text class="kFimg-text-1">幸运咖</text></view>
						<view><text class="kFimg-text-2">每日抽奖送好礼，主题日限时开放！</text></view>
					</view>
				</scroll-view>
			</view>
		</view>
		<!-- 咖啡推荐end -->
		<!-- 打卡圣地start -->
		<view class="lunBoBigBox">
			<view class="daKaShengDi">
				<view class="kF-view">
					<text class="kF-text1">打咖圣地</text>
					<view class="gengDuo">
						<text class="kF-text2">更多</text>
						<image src="/static/jiantou.png"></image>
					</view>
				</view>
				<scroll-view class="scroll-view_H" scroll-x="true" @scroll="scroll" scroll-left="0">
					<view class="scr-view1">
						<image class="dKimg" src="/static/dKimg1.png"></image>
						<view><text class="kFimg-text-1">急速过山车</text></view>
						<view class="dKtext-2Box"><text class="kFimg-text-2 wrap">尖叫时刻，瞬间冲刺的感官快感给你无与伦比的刺激…</text></view>
					</view>
					<view class="scr-view1">
						<image class="dKimg" src="/static/dKimg2.png"></image>
						<view><text class="kFimg-text-1">摩天轮</text></view>
						<view class="dKtext-2Box"><text class="kFimg-text-2 wrap">超大摩天轮，在小小空间体验温文浪漫的至高一刻…</text></view>
					</view>
					<view class="scr-view1">
						<image class="dKimg" src="/static/dKimg3.png"></image>
						<view><text class="kFimg-text-1">旋转木马</text></view>
						<view class="dKtext-2Box"><text class="kFimg-text-2 wrap">慢慢悠悠的童年小快乐，回忆12岁的那时间静止的快乐…</text></view>
					</view>
					<view class="scr-view1">
						<image class="dKimg" src="/static/dKimg4.png"></image>
						<view><text class="kFimg-text-1"></text>气球乐园</view>
						<view class="dKtext-2Box"><text class="kFimg-text-2 wrap">五彩缤纷的飞扬，是气球天堂的绝美时刻，放飞自我…</text></view>
					</view>
				</scroll-view>
			</view>
		</view>
		<!-- 打卡圣地end -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				scrollTop: 0,
				old: {
					scrollTop: 0
				}
			}
		},
		onLoad() {

		},
		methods: {
			scroll: function(e) {
				// console.log(e)
				this.old.scrollTop = e.detail.scrollTop
			},
			tojcfs(){
				uni.navigateTo({
					url:'/pages/jingCaiFangSong/jingCaiFangSong'
				})
			},
			myCode(){
				uni.navigateTo({
					url:'/pages/myCode/myCode'
				})
			}
		}
	}
</script>

<style>
	html,
	page {
		padding: 0;
		margin: 0;
	}

	/* top start */
	.top {
		display: flex;
		justify-content: space-between;
		align-items: center;
		position: relative;
		width: 100%;
		height: 44px;
	}

	.TM {
		font-size: 10px;
		position: absolute;
		left: 165px;
		top: 10px;
	}

	.text-1 {
		font-size: 22px;
		padding-left: 10px;
	}

	.top-box {
		display: flex;
		position: relative;
	}

	.top-box-view1 {
		border-radius: 100%;
		width: 10px;
		height: 10px;
		position: relative;
		top: 8px;
		right: 5px;
		background-color: greenyellow;
	}

	.text-2 {
		font-size: 20px;
		padding-right: 10px;
	}

	/* top end */

	/* 轮播start */
	.lunBoBigBox {
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.lunBo {
		width: 429px;
		height: 241px;
		/* border: 2px solid black; */
		display: flex;
		justify-content: center;
		border-radius: 10px;
		overflow: hidden;
	}

	.lBimg {
		width: 100%;
		height: 100%;
	}

	.lunBo swiper {
		width: 100%;
		height: 100%;
	}

	/* 轮播end */

	/* 功能start */
	.gongNeng {
		display: flex;
		justify-content: space-around;
		height: 64px;
		margin-top: 25px;
		margin-bottom: 25px;
	}

	.gN-view {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.gN-view i {
		width: 28px;
		height: 28px;
		font-size: 35px;
		color: #1D65E3;
	}

	.gN-view text{
		font-size: 17px;
		margin-top: 8px;
		padding-left: 5px;
	}
	/* 功能end */

	/* 咖啡推荐start */
	.kaFeiTuiJian {
		display: flex;
		flex-direction: column;
		margin-bottom: 25px;
		max-width: 924px;
		min-width: 429px;
	}

	.kaFeiTuiJian image {
		margin-right: 5px;
	}

	.kF-view {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.scroll-view_H {
		white-space: nowrap;
		width: 100%;
	}

	.scr-view1 {
		display: inline-table;
		margin-left: 10px;
	}

	.kFimg {
		width: 303.75px;
		height: 172.125px;
		border-radius: 8px;
	}

	.kFimg-text-1 {
		font-size: 20px;
		letter-spacing: 2px;
	}

	.kFimg-text-2 {
		font-size: 17px;
		color: rgba(153, 153, 153, 1);
		letter-spacing: 1px
	}

	.kF-text1 {
		font-size: 22px;
		/* font-weight: bold; */
		padding-left: 10px;
	}

	.kF-text2 {
		font-size: 18px;
	}

	/* 咖啡推荐end */

	/* 打卡圣地start */
	.daKaShengDi {
		max-width: 924px;
		min-width: 429px;
		margin-bottom: 40px;
	}

	.daKaShengDi image {
		margin-right: 5px;
	}

	.dKimg {
		width: 237.5px;
		height: 187.5px;
		border-radius: 8px;
	}
	
	.dKtext-2Box{
		width: 237.5px;
	}
	
	.wrap{
		white-space: pre-wrap;
	}

	.gengDuo image {
		width: 24px;
		height: 24px;
	}

	.gengDuo {
		display: flex;
		align-items: center;
		padding-right: 10px;
	}

	/* 打卡圣地start */
</style>
